package com.spring.applicationEvent_demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
		EmailService emailService = (EmailService) context.getBean("emailService");
		emailService.sendEmail("addre1","hello~");
		emailService.sendEmail("known.hacker@example.org","hello~");
		System.out.println("heiheihei ");
	}
}
